package com.nuit.cxl.mybatisdemo.dao;

import com.nuit.cxl.mybatisdemo.domain.TblAccount;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AccountDao {

    @Insert("insert into tbl_account(name,money)values(#{name},#{money})")
    void save(TblAccount account);

    @Select("select * from tbl_account where id = #{id} ")
    TblAccount findById(Integer id);
}

